//
//  MyCollectsItem.swift
//  weile
//
//  Created by LKM on 16/10/26.
//  Copyright © 2016年 LKM. All rights reserved.
//

import UIKit
import Kingfisher

class MyCollectsItem: UITableViewCell {

    @IBOutlet weak var img_head: UIImageView!
    @IBOutlet weak var lbl_title: UILabel!
    
    
    @IBOutlet weak var lbl_content: UILabel!
    
    
    var mMyCollectsItemTo:MyCollectsItemTo! {
        
        didSet{
            lbl_title.setText(str: mMyCollectsItemTo.title);
            lbl_content.setText(str: mMyCollectsItemTo.remark);
            
            
            
            img_head.kf.setImage(with: URL(string: Api.getImageUrl(mMyCollectsItemTo.img ?? "" ) ), placeholder: Image(named: "PlaceHolderImage_small"), options: nil, progressBlock: nil) { (image, error, cacheType, imageURL) in
                
            }
            
            
            
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
        backgroundColor = UIColor.clear
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)
        
        // Configure the view for the selected state
    }

}
